package Behavioral_design_pattern.Chain_Of_Responsibility_Pattern;

public abstract class Leader {
    protected String name;
    protected Leader successor;

    public Leader(String name){
        this.name = name;
    }

    public void setSuccessor(Leader successor){
        this.successor = successor;
    }
    public abstract void handleRequest(LeaveRequest request);
}
